package rpchandle

import (
	"smartconn.cc/cubestruct/Msg"
	"smartconn.cc/cubestruct/Service/rpchandle/rpcclient"
)

// WifiOnReport define
func WifiOnReport() {
	var msg Msg.EventFromService
	var reply Msg.EventFromServiceReply
	msg.Name = Msg.WifiEventName
	msg.Body = make(map[string]interface{})
	msg.Body["status"] = true
	rpcclient.Client.Call("App.EeventNoticeFromService", msg, &reply)
}

// WifiOffReport define
func WifiOffReport() {
	var msg Msg.EventFromService
	var reply Msg.EventFromServiceReply
	msg.Name = Msg.WifiEventName
	msg.Body = make(map[string]interface{})
	msg.Body["status"] = false
	rpcclient.Client.Call("App.EeventNoticeFromService", msg, &reply)
}
